
import unittest
import uiautomation
from page.住院护士站.住院护士站.feiyongbulu__page import feiyongbulu
from page.住院护士站.住院护士站.zhuyuanhushizhan__page import zhuyuanhushizhan
class TestZhuyuanhushizhan(unittest.TestCase):
    his = uiautomation.WindowControl(searchDepth=1, Name='科玛奇医院信息管理系统')  # 锁定窗口
    his.SetFocus()
    def test_8_zhuyuanhushizhan_feiyongbulu(self):
        bp = zhuyuanhushizhan()
        cp = feiyongbulu()
        bp.click_fybl()#点击费用补录
        cp.input_xmmc('普通病房床位费（甲）')
        cp.click_dw_btn()#点击定位
        cp.clik_cj_first()#冲减第一条数据
        cp.click_cjqd()#点击冲减确定
        cp.input_xmmc('普通病房床位费（甲）')
        cp.click_dw_btn()  # 点击定位
        cp.clik_cj_last()#冲减最后一条数据
        cp.click_cjqd()#点击冲减确定
        cp.add_sfxm(2)#添加项目
        cp.choose_last_xmmc('一次性使用中性电极')
        cp.click_zc_btn()#点击暂存
        cp.click_tj_btn()#点击提交

if __name__ == '__main__':
    unittest.main()
